package com.itshi.demo1;

import java.nio.channels.ScatteringByteChannel;
import java.util.Scanner;

public class demo2 {
    public static void mouth() {
        Scanner sc = new Scanner(System.in);
        int num = sc.nextInt();
        if (num % 2 == 0) {
            System.out.println("偶数");
        } else
            System.out.println("奇数");

    }

    public static int print(int n, int num){
        return n+num;
        /*if(n>num){
            n = n^num;
            num = n ^num;
            n = n ^ num;
        }
        System.out.println("打印"+n+"到"+num+"之间的奇数");
        for(int i = n; i< num;i++){
            if(i%2!=0){
                System.out.println(i);
            }
        }*/
    }
    public static void ziwojieshao(){
        System.out.println("大家我，我叫周震；我是Java练习时常高达七天半的java练习生");
        System.out.println("我喜欢唱跳rap");
    }
    public static int getMax(int a, int b, int c){
        if(a >b&&a>c){
            return a;
        }else if(b>c){
            return b;
        }else{
            return c;
        }
    }
    public static int getMax2(int a, int b, int c){
        int testmax = a>b?a:b;
        int max = testmax > c?testmax:c;
        return max;
    }
    public static void main(String[] args) {
       int max1 = getMax(187, 189,210);
        int max2 = getMax2(170,160,155);
        ziwojieshao();
        System.out.println(max1);
        System.out.println(max2);
    }
}
//    ziwojieshao();
/*
int[] arr = new int[7];
        Scanner sc = new Scanner(System.in);
        for(int i = 0; i < 7; i++){
            System.out.println("请输入第"+(i+1)+"个人的次数");
            int count = sc.nextInt();
            arr[i] = count;
        }
        for(int i = 0; i<7;i++){
            System.out.println("第"+(i+1)+"个人的次数是:" +arr[i]);
        }
 */
/*
        //Scanner sc = new Scanner(System.in);
        int a = 10;
        int b = 100;
        int sum = print(a, b);
        System.out.println(sum);
        //mouth();
 */